// 系统管理-机构人员-人员
import {
    address,
    pathApi
} from "@/api/path";
// 引入request文件
import request from '../utils/request';
// 查询机构
export const findHrOrgan = condition => {
    return request({
        url: `${address}${pathApi}/HrOrgan/findHrOrgan`,
        method: 'get',
        // 声明发送formData数据的头部，默认是发送json
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded'
        // },
        data: condition,
    });
};
// 查询人员
export const findHrPerson = condition => {
    console.log("condition",condition);
    return request({
        url: `${address}${pathApi}/HrPerson/findHrPerson`,
        method: 'post',
        data: condition,
    });
};
// 删除人员
export const deleteHrPerson = condition => {
    return request({
        url: `${address}${pathApi}/HrPerson/deleteHrPerson`,
        method: 'post',
        data: condition,
    });
};
// 修改人员
export const setHrPerson = condition => {
    return request({
        url: `${address}${pathApi}/HrPerson/setHrPerson`,
        method: 'post',
        data: condition,
    });
};
// 新增人员
export const addHrPerson = condition => {
    return request({
        url: `${address}${pathApi}/HrPerson/addHrPerson`,
        method: 'post',
        data: condition,
    });
};
